package com.htjc.integral.activity.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.htjc.integral.model.activity.EcCouponRecord;



@Mapper
public interface CouponMapper {

	
	
	/**
	 * 获取1000条可以修改的coupon信息 放入缓存中
	 * @param promotionId String
	 * @return List<EcCouponRecord>
	 */
	public List<EcCouponRecord> getUnReceivedCouponByOneThousand(String promotionId) ;
	/**
	 * 更新couponRecord表记录
	 * @param map Map key:status(修改领取状态) ,userId(领取人的Id) ,couponId(要修改记录的主键)
	 */
	public void updateCouponRecord(Map<String, String> map);
	public EcCouponRecord getEcCouponRecord(String couponId);
	
	
	
}
